-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some more node std libs #115
Conversation
declare module "dgram" { | ||
declare function createSocket(type: string, callback?: () => void): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this return dgram$Socket?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch
Overlap with #108 on Buffer, how do we want to resolve this? |
I'll remove my Buffer impl and comment on a few things I see in that one |
OK, at first glance it seems you have more stuff in there, so I wouldn't just delete yours. Maybe try to merge? |
I ran through and compared -- it looks like I actually got a couple things wrong (I verified any discrepancies I saw). Anyway, I commented on that PR with any issues I saw there -- so going to remove from here now |
2275f57
to
6c9afe4
Compare
6c9afe4
to
99a3d8b
Compare
99a3d8b
to
e23a5a2
Compare
@@ -217,19 +217,149 @@ declare module "crypto" { | |||
): void; | |||
} | |||
|
|||
type dgram$Socket = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dgram.Socket inherits from EventEmitter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh good catch, I'll circle back on this in a follow-up
Adds a few more node module type signatures (
Buffer
,dgram
,dns
,domain
, andevents
)